package com.tron.dobest.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tron.dobest.mybatisplus.entity.Message;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MessageMapper extends BaseMapper<Message> {
    Message getMessage(@Param("id") String id);

    int deleteMessage(@Param("id") String id);

    int addMessage(@Param("message") Message message);

    int updateMessage(@Param("message") Message message);

    List<Message> findMessage(@Param("message") Message message);
}
